/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.chl.niclun.projectwebshop.nbp;

import edu.chl.niclun.projectwebshop.nbp.Entities.Client;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;

/**
 *LoginBean. Used to determinate if and wich client who is logged in
 * @author Nume
 */
@ManagedBean(name="LoginBean")
@ApplicationScoped
public class LoginBean {
    //if logged this is = true
    private boolean isLoggedIn;
    //which Client who is logged in
    private Client user;
    
    /** Creates a new instance of LoginBean */
    public LoginBean() {
    }

    public boolean isIsLoggedIn() {
        return isLoggedIn;
    }

    public void setIsLoggedIn(boolean isLoggedIn) {
        this.isLoggedIn = isLoggedIn;
    }

    public Client getUser() {
        return user;
    }

    public void setUser(Client user) {
        this.user = user;
    }

    
}
